<?php
// string is array (compound datatype)
$str1= "abc.com";

$strArrayEle = $str1[0];
echo $strArrayEle;
?>